Skip to content

UCT/CUDA_COPY: Fix incorrect mem_flags detection - v1.22.x#11645

Merged
brminich merged 3 commits into
openucx:v1.22.xfrom
tomerg-nvidia:fix_no_context_mem_flags_v1.22
Jul 10, 2026
Merged

UCT/CUDA_COPY: Fix incorrect mem_flags detection - v1.22.x#11645
brminich merged 3 commits into
openucx:v1.22.xfrom
tomerg-nvidia:fix_no_context_mem_flags_v1.22

Conversation

@tomerg-nvidia

Copy link
Copy Markdown
Contributor

What?

Push a cuda context before flag detection if the flag detection is going to export dmabuf fd.
If Memory is host-based vmm, skip the dmabuf fd check and just mark as registerable.

Why?

If there's currently no context and the memory flags detection is called the dmabuf export can fail, making it non-registerable.
Host-based vmm fail dmabuf fd export.

How?

Push context when needed, trying to use available context first

Backport of #11635
Contains also #11642

@tomerg-nvidia tomerg-nvidia changed the title Fix no context mem flags v1.22 UCT/CUDA_COPY: Fix incorrect mem_flags detection - v1.22.x Jul 10, 2026
@brminich brminich merged commit b74f06b into openucx:v1.22.x Jul 10, 2026
161 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants